#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class PagePermissions : Business.BusinessBase<PagePermissions, int>
	{
		#region Fields and Properties

		private int permissionsKey = 0;
		/// <summary>
		/// 
		/// </summary>
		public int PermissionsKey
		{
			get { return permissionsKey; }
			set
			{
				if (value != permissionsKey)
				{
					MarkChanged("PermissionsKey");
					permissionsKey = value;
				}
			}
		}

		private int pageKey = 0;
		/// <summary>
		/// 
		/// </summary>
		public int PageKey
		{
			get { return pageKey; }
			set
			{
				if (value != pageKey)
				{
					MarkChanged("PageKey");
					pageKey = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public PagePermissions()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override PagePermissions DataSelect(int id)
		{
			return Services.DALService.PagePermissionsService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.PagePermissionsService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.PagePermissionsService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.PagePermissionsService.Delete(this);
		}

		#endregion Base overrides
	}
}
